]> dgit.raspbian.org Git - gnome-shell.git/commit
messageTray: Chain up in NotificationPolicy constructor
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 11 Dec 2018 10:17:30 +0000 (11:17 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 22 Jan 2019 21:33:46 +0000 (21:33 +0000)
commita6763e7731950b5dec359218476cbb086831511e
treee60ba65bbb6e14d72178581eedd03fabfc06e727
parent8f15193b403fe7caa725096ef21ef88684b975f3
messageTray: Chain up in NotificationPolicy constructor

We currently deliberately avoid chaining up in derived policy
constructors to not override properties with their defaults.
That's a neat trick that will stop working when porting to ES6
classes, as chaining up is necessary to actually initialize the
object there (including "this").

Address this by turning all properties into (overridable) getters
that are backed by private properties by default.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/350
js/ui/messageTray.js